import {
  FileOutlined,
  HomeOutlined,
  MailOutlined,
  SettingOutlined,
  TableOutlined,
  UserOutlined,
} from '@ant-design/icons';

export enum IconEnum {
  home = 'home',
  user = 'user',
  setting = 'setting',
  file = 'file',
  mail = 'mail',
  table = 'table',
  // 添加更多图标
}

export const IconOutlinedValueEnum = {
  [IconEnum.home]: <HomeOutlined />,
  [IconEnum.user]: <UserOutlined />,
  [IconEnum.setting]: <SettingOutlined />,
  [IconEnum.file]: <FileOutlined />,
  [IconEnum.mail]: <MailOutlined />,
  [IconEnum.table]: <TableOutlined />,
};

export const getIcon = (iconName: string) => {
  return IconOutlinedValueEnum[iconName] || null;
};
